package com.xdtech.jmax.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.jmax.model.PageView;
import com.xdtech.jmax.vo.PageViewItem;

/**
 * 
 * @author max.zheng
 * @create 2015-03-12 10:24:48
 * @since 1.0
 * @see
 */
public interface PageViewService extends IBaseService<PageView>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-03-12 10:24:48
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdatePageView(PageViewItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-03-12 10:24:48
	 * @modified by
	 * @param newId
	 * @return
	 */
	PageViewItem loadPageViewItem(Long pageViewId);

	/**
	 * 根据id号删除记录信�?
	 * @author max.zheng
	 * @create 2015-03-12 10:24:48
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deletePageViewInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-03-12 10:24:48
	 * @modified by
	 * @param pageViewIds
	 */
	boolean deletePageViewInfo(List<Long> pageViewIds);

	/**
	 * 获取指定访问页面数
	 * @author max
	 * @since 2015-3-12 上午11:57:38
	 * @param string
	 * @return
	 */
	Long getJmaxPageCount(String pageFlag);
}
